package com.stu.dao;

import org.springframework.stereotype.Repository;

/**
 * @author zy
 * @date 2025/3/31
 */
@Repository
public class UserDaoImpl implements UserDao {
    @Override
    public int addUser(int a, int b) {
        System.out.println("添加user对象");
//        a = 1/0;
        return a+b;
    }

    @Override
    public double subUser(double a, double b) {
        System.out.println("添加user对象");
        return a-b;
    }
}
